package views
{
	import flash.utils.Dictionary;

	public class UIAsset
	{
		
		private static var ASSET_MAPPING:Dictionary;
		
		
		public static const MODULE_LOADING:String = "UILoadingModule";
		public static const MODULE_SCREEN:String = "UIMainModule";
		public static const MODULE_BATTLE:String = "UIBattleModule";
		
		
		public static const UI_LOADING:String = "Loading";
		public static const UI_ALERT:String = "Alert";
		public static const UI_SCREEN:String = "Screen";
		public static const UI_BATTLE:String = "BattleFiled";
		
		
		public function UIAsset()
		{
		}
		
		public static function get assetMap():Dictionary
		{
			
			if( ASSET_MAPPING == null )
			{
				ASSET_MAPPING = new Dictionary();
			
				//读取模块
				var loadingUI:Array = [ UI_LOADING, UI_ALERT ];
				
				//主屏幕模块
				var screenUI:Array = [ UI_SCREEN ];
				
				//战斗模块
				var battleUI:Array = [ UI_BATTLE ];
					
				ASSET_MAPPING[ MODULE_LOADING ]  = loadingUI;
				ASSET_MAPPING[ MODULE_SCREEN ] = screenUI;
				ASSET_MAPPING[ MODULE_BATTLE ] = battleUI;
			
			}
			
			return ASSET_MAPPING;
		}
		
	}
}